#ifndef HEXITEM_H
#define HEXITEM_H

#include <QGraphicsPolygonItem>
#include "common.h"
#include "being.h"

class HexItem : public QGraphicsPolygonItem
{
public:
    HexItem(QGraphicsPolygonItem *parent = 0, const int size = 1, const double h = 1.73);
    //void updateGrass();
    void setMeadow(Meadow* meadow, int i, int j);
    void test();
    void paint();
    int getX();
    int getY();
    int type();
    Being* circle;
    double h;
    QRectF boundingRect() const;
    int getColor();
private:
    Meadow *meadow;
    int i,j;
    int size;

protected:


};

#endif // HEXITEM_H
